#! /bin/sh
make clean updatedep

cd ..
FILELIST=`find ReflectBlade -type f -and \( ! -path "*.svn*" \) -and \( ! -name ReflectBlade \) -and \( ! -name \*.log \) -and \( ! -name BoatRace \) -and \( ! -name TextViewer \) -and \( ! -name VertexBench \) -and \( ! -name DEPENDS \) -and \( ! -name gmon.out \) -and \( ! -regex '.*\.\(exe\|png\|jpg\|bmp\|o\|~\)' \)`

BACKUPFILE=`date +'ReflectBlade%Y%m%d%H%M%S.tar.bz2'`

echo $BACKUPFILE
echo $FILELIST
tar jcvf $BACKUPFILE $FILELIST 

